/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fileidentifier.javaclassutils;

/**
 *
 * @author ApT
 */
public class ModuleLoader extends ClassLoader {

    private String pathtobin;

    public ModuleLoader(String pathtobin, ClassLoader parent) {
        super(parent);
        this.pathtobin = pathtobin;
    }

    public Class<?> findClass(byte[] clas) throws ClassNotFoundException {
        return defineClass(clas, 0, clas.length);
    }
}